package com.shoppingmall;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

public class test {
    public static void main(String[] args) {

        PasswordEncoder passwordEncoder =new BCryptPasswordEncoder();
        String admin = passwordEncoder.encode("123456");
        System.out.println(admin);

    }



    public static class ListNode {
        int val;
        ListNode next;
        ListNode(int x) {
            val = x;
        }
    }

    static class Solution {
        public ListNode reverseList(ListNode head) {
            ListNode cur=head,pre=null;
            while (cur!=null){
                ListNode tmp= cur.next;
                cur.next=pre;
                pre=cur;
                cur=tmp;
            }
            return pre;
        }
    }


}









